﻿@model ContentResourceDto

@switch (Model.Type)
{
    case ContentResourceType.Article:
        @Html.Partial("Parts/Detail/Parts/Article", Model)
        break;
    case ContentResourceType.Video:
        @Html.Partial("Parts/Detail/Parts/Video", Model);
        break;
    case ContentResourceType.Atlas:
        @Html.Partial("Parts/Detail/Parts/Atlas", Model);
        break;
    default:
        break;
}
<div id="dialogButtons">
    @Html.EasyUi().DialogButton("关 闭").Icon("icon-cancel").Width(90).CloseDialog()
</div>